<!DOCTYPE html>
<html lang="zh-cn" dir="ltr">
    <head><meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'><meta name='description' content='(转载)'>
<title>Kawaii-gcc 让GCC变得可爱</title>

<link rel='canonical' href='https://ypr.gitee.io/p/prog/cpp-kawaii-gcc/'>

<link rel="stylesheet" href="/scss/style.min.abbd69b2908fdfcd5179898beaafd374514a86538d81639ddd2c58c06ae54e40.css"><meta property='og:title' content='Kawaii-gcc 让GCC变得可爱'>
<meta property='og:description' content='(转载)'>
<meta property='og:url' content='https://ypr.gitee.io/p/prog/cpp-kawaii-gcc/'>
<meta property='og:site_name' content='天远博客'>
<meta property='og:type' content='article'><meta property='article:section' content='Post' /><meta property='article:tag' content='编程' /><meta property='article:tag' content='C&#43;&#43;' /><meta property='article:tag' content='Kawaii-gcc' /><meta property='article:tag' content='编译' /><meta property='article:published_time' content='2024-01-07T13:00:21&#43;08:00'/><meta property='article:modified_time' content='2024-01-07T14:00:21&#43;08:00'/>
<meta name="twitter:title" content="Kawaii-gcc 让GCC变得可爱">
<meta name="twitter:description" content="(转载)">
    </head>
    <body class="
    article-page
    ">
    <script>
        (function() {
            const colorSchemeKey = 'StackColorScheme';
            if(!localStorage.getItem(colorSchemeKey)){
                localStorage.setItem(colorSchemeKey, "auto");
            }
        })();
    </script><script>
    (function() {
        const colorSchemeKey = 'StackColorScheme';
        const colorSchemeItem = localStorage.getItem(colorSchemeKey);
        const supportDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches === true;

        if (colorSchemeItem == 'dark' || colorSchemeItem === 'auto' && supportDarkMode) {
            

            document.documentElement.dataset.scheme = 'dark';
        } else {
            document.documentElement.dataset.scheme = 'light';
        }
    })();
</script>
<div class="container main-container flex on-phone--column extended"><aside class="sidebar left-sidebar sticky ">
    <button class="hamburger hamburger--spin" type="button" id="toggle-menu" aria-label="切换菜单">
        <span class="hamburger-box">
            <span class="hamburger-inner"></span>
        </span>
    </button>

    <header>
        
            
            <figure class="site-avatar">
                <a href="/">
                
                    
                    
                    
                        
                        <img src="/img/TianYuan_hu00d35ae089bda3bce539f572b00404d0_57842_300x0_resize_box_3.png" width="300"
                            height="300" class="site-logo" loading="lazy" alt="Avatar">
                    
                
                </a>
                
            </figure>
            
        
        
        <div class="site-meta">
            <h1 class="site-name"><a href="/">天远博客</a></h1>
            <h2 class="site-description">专注于技术沉淀！！！</h2>
        </div>
    </header><ol class="social-menu">
            
                <li>
                    <a 
                        href='https://github.com/yuanpeirong'
                        target="_blank"
                        title="GitHub"
                        rel="me"
                    >
                        
                        
                            <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
  <path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" />
</svg>



                        
                    </a>
                </li>
            
                <li>
                    <a 
                        href='http://www.yprnet.com'
                        target="_blank"
                        title="天远网站"
                        rel="me"
                    >
                        
                        
                            <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-home" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <polyline points="5 12 3 12 12 3 21 12 19 12" />
  <path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7" />
  <path d="M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6" />
</svg>



                        
                    </a>
                </li>
            
        </ol><ol class="menu" id="main-menu">
        
        
        
        <li >
            <a href='/' >
                
                
                
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-home" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <polyline points="5 12 3 12 12 3 21 12 19 12" />
  <path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7" />
  <path d="M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6" />
</svg>



                
                <span>主页</span>
            </a>
        </li>
        
        
        <li >
            <a href='/about/' >
                
                
                
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-user" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <circle cx="12" cy="7" r="4" />
  <path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" />
</svg>



                
                <span>关于</span>
            </a>
        </li>
        
        
        <li >
            <a href='/archives/' >
                
                
                
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-archive" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <rect x="3" y="4" width="18" height="4" rx="2" />
  <path d="M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10" />
  <line x1="10" y1="12" x2="14" y2="12" />
</svg>



                
                <span>归档</span>
            </a>
        </li>
        
        
        <li >
            <a href='/search/' >
                
                
                
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-search" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <circle cx="10" cy="10" r="7" />
  <line x1="21" y1="21" x2="15" y2="15" />
</svg>



                
                <span>搜索</span>
            </a>
        </li>
        
        
        <li >
            <a href='/links/' >
                
                
                
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" />
  <path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" />
</svg>



                
                <span>链接</span>
            </a>
        </li>
        

        <div class="menu-bottom-section">
            
            
                <li id="dark-mode-toggle">
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-toggle-left" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <circle cx="8" cy="12" r="2" />
  <rect x="2" y="6" width="20" height="12" rx="6" />
</svg>



                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-toggle-right" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <circle cx="16" cy="12" r="2" />
  <rect x="2" y="6" width="20" height="12" rx="6" />
</svg>



                    <span>暗色模式</span>
                </li>
            
        </div>
    </ol>
</aside>

    <aside class="sidebar right-sidebar sticky">
        
            
                
    <section class="widget archives">
        <div class="widget-icon">
            <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-hash" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <line x1="5" y1="9" x2="19" y2="9" />
  <line x1="5" y1="15" x2="19" y2="15" />
  <line x1="11" y1="4" x2="7" y2="20" />
  <line x1="17" y1="4" x2="13" y2="20" />
</svg>



        </div>
        <h2 class="widget-title section-title">目录</h2>
        
        <div class="widget--toc">
            <nav id="TableOfContents">
  <ol>
    <li><a href="#依赖">依赖</a></li>
    <li><a href="#如何使用">如何使用？</a>
      <ol>
        <li><a href="#linux-以ubuntu为例">Linux (以Ubuntu为例)</a></li>
        <li><a href="#windows">Windows</a></li>
        <li><a href="#macos">macOS</a></li>
      </ol>
    </li>
    <li><a href="#如何修改贡献">如何修改/贡献</a>
      <ol>
        <li>
          <ol>
            <li><a href="#关于src目录下的文件">关于<code>src</code>目录下的文件</a></li>
            <li><a href="#如果您愿意参与贡献本项目">如果您愿意参与贡献本项目</a></li>
          </ol>
        </li>
      </ol>
    </li>
    <li><a href="#star-history">Star History</a></li>
    <li><a href="#特别鸣谢">特别鸣谢</a></li>
  </ol>
</nav>
        </div>
    </section>

            
        
    </aside>


            <main class="main full-width">
    <article class="main-article">
    <header class="article-header">

    <div class="article-details">
    
    <header class="article-category">
        
            <a href="/categories/%E7%BC%96%E7%A8%8B/" >
                编程
            </a>
        
            <a href="/categories/c&#43;&#43;/" >
                C&#43;&#43;
            </a>
        
    </header>
    

    <div class="article-title-wrapper">
        <h2 class="article-title">
            <a href="/p/prog/cpp-kawaii-gcc/">Kawaii-gcc 让GCC变得可爱</a>
        </h2>
    
        
        <h3 class="article-subtitle">
            (转载)
        </h3>
        
    </div>

    
        <footer class="article-time">
            
                <div>
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-calendar-time" width="56" height="56" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <path d="M11.795 21h-6.795a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v4" />
  <circle cx="18" cy="18" r="4" />
  <path d="M15 3v4" />
  <path d="M7 3v4" />
  <path d="M3 11h16" />
  <path d="M18 16.496v1.504l1 1" />
</svg>
                    <time class="article-time--published">2024-01-07</time>
                </div>
            

            
            
                        最后更新:
                        <time class="article-time--updated" datetime="2024-01-07 14:00:21 &#43;0800 CST" title="2024-01-07 14:00:21 &#43;0800 CST">
                            2024-01-07
                        </time>

            
                <div>
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-clock" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <circle cx="12" cy="12" r="9" />
  <polyline points="12 7 12 12 15 15" />
</svg>



                    <time class="article-time--reading">
                        阅读时长: 3 分钟
                    </time>
                </div>
            
        </footer>
    


    
</div>

</header>

    <section class="article-content">
    
    
    <ul>
<li>转自：<a class="link" href="https://github.com/Bill-Haku/kawaii-gcc/blob/main/README-zh.md"  target="_blank" rel="noopener"
    >https://github.com/Bill-Haku/kawaii-gcc/blob/main/README-zh.md</a></li>
</ul>
<p><img src="https://img.shields.io/github/stars/Bill-Haku/kawaii-gcc"
	
	
	
	loading="lazy"
	
		alt="GitHub Repo stars"
	
	
> <img src="https://img.shields.io/github/contributors/Bill-Haku/kawaii-gcc"
	
	
	
	loading="lazy"
	
		alt="GitHub contributors"
	
	
> <img src="https://img.shields.io/github/license/Bill-Haku/kawaii-gcc"
	
	
	
	loading="lazy"
	
		alt="GitHub License"
	
	
></p>
<p>让你的GCC编译器变得可爱！</p>
<p>本项目通过修改GCC的输出信息的本地化文件的方式让GCC变得可爱。</p>
<p>欢迎贡献更多有趣的内容。</p>
<h2 id="依赖">依赖</h2>
<ul>
<li>GNU GCC</li>
<li>GNU Gettext</li>
</ul>
<h2 id="如何使用">如何使用？</h2>
<h3 id="linux-以ubuntu为例">Linux (以Ubuntu为例)</h3>
<blockquote>
<p><a class="link" href="https://www.bilibili.com/video/BV1gC4y1P7t3/"  target="_blank" rel="noopener"
    >中文版使用教程视频-Bilibili</a></p>
<p><a class="link" href="https://www.bilibili.com/video/BV1Wg4y1X74a/"  target="_blank" rel="noopener"
    >日语版使用教程视频-Bilibili</a></p>
<p><a class="link" href="https://youtu.be/ASWBU8HhvY0"  target="_blank" rel="noopener"
    >日语版使用教程视频-YouTube</a></p>
</blockquote>
<ul>
<li>
<p>安装中文 (如果没有安装)</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo apt-get install language-pack-zh-hans language-pack-zh-hans-base
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>
<p>安装 <code>gcc</code> ,  <code>gettext</code> 和 <code>g++</code>.</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo apt-get install gcc gettext g++
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>
<p>安装 <code>gcc locales</code></p>
<p>通过以下命令检查你的<code>gcc</code>版本号</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">gcc -v
</span></span></code></pre></td></tr></table>
</div>
</div><p>我这里是12.3.0.所以我的主版本号是12，安装<code>gcc-12-locales</code></p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo apt-get install gcc-12-locales
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>
<p>找到你的语言文件的路径。默认会在 <code>/usr/share/locale/zh_CN/LC_MESSAGES/gcc.mo</code>. 不过你也有可能找不到该文件或者找到名为<code>gcc-12.mo</code>的文件。如果已有相关文件，备份之。 (eg. <code>sudo mv gcc-12.mo gcc-12.mo.bak</code>) 如果没有相关文件，无需担心，什么都不需要做。</p>
</li>
<li>
<p>通过以下命令下载仓库中的<code>mo</code> 文件然后将其复制到刚才的路径去。</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"> sudo wget https://github.com/Bill-Haku/kawaii-gcc/raw/main/prebuilt/gcc-zh.mo -O /usr/share/locale/zh_CN/LC_MESSAGES/gcc-12.mo
</span></span></code></pre></td></tr></table>
</div>
</div><p>您也可以自行重新编译该二进制文件：</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">make merge-zh
</span></span><span class="line"><span class="cl">msgfmt gcc-zh.po -o gcc.mo
</span></span><span class="line"><span class="cl">sudo cp gcc.mo /usr/share/locale/zh_CN/LC_MESSAGES/gcc-12.mo
</span></span></code></pre></td></tr></table>
</div>
</div><p>或</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">make
</span></span></code></pre></td></tr></table>
</div>
</div><p>关于文件名：</p>
<ul>
<li>如果你在上个步骤找到了相关文件，请直接使用原本的名字。</li>
<li>如果没有，首先使用 <code>gcc-&lt;主版本号&gt;.mo</code> 。如果发现不起作用，将其重命名为 <code>gcc.mo</code>.</li>
</ul>
</li>
<li>
<p>修改环境变量以将终端语言改为中文：</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span><span class="lnt">7
</span><span class="lnt">8
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">vim ~/.bashrc
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Add the following lines</span>
</span></span><span class="line"><span class="cl"><span class="nb">export</span> <span class="nv">LANG</span><span class="o">=</span><span class="s2">&#34;zh_CN.UTF-8&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">export</span> <span class="nv">LANGUAGE</span><span class="o">=</span><span class="s2">&#34;zh_CN.UTF-8&#34;</span>
</span></span><span class="line"><span class="cl"><span class="c1"># Save it in Vim</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nb">source</span> ~/.bashrc
</span></span></code></pre></td></tr></table>
</div>
</div></li>
<li>
<p>现在你的GCC已经变得可爱了。</p>
<p>你可以使用附带的 <code>test.cc</code> 来试试效果。</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">gcc test.cc -Wall
</span></span><span class="line"><span class="cl"><span class="c1"># -Wall 表示让GCC输出所有警告信息</span>
</span></span></code></pre></td></tr></table>
</div>
</div></li>
</ul>
<h3 id="windows">Windows</h3>
<ol>
<li>
<p>安装 <a class="link" href="https://www.cygwin.com/"  target="_blank" rel="noopener"
    >Cygwin</a>。<br>
步骤：</p>
<ol>
<li>下载并运行 <a class="link" href="https://www.cygwin.com/setup-x86_64.exe"  target="_blank" rel="noopener"
    >setup-x86_64.exe</a></li>
<li>在 <code>选择下载源</code> (<code>Choose A Download Source</code>) 步骤时选择 <code>从互联网安装</code> (<code>Install from Internet</code>)<br>
<img src="/img/install_from_internet.png"
	
	
	
	loading="lazy"
	
		alt="install_from_internet.png"
	
	
></li>
<li>在 <code>选择软件包</code> (<code>Select Packages</code>) 步骤时, 将<code>查看</code> (<code>View</code>) 设为 <code>类别</code> (<code>Category</code>) 并依次搜索 (Search) 并选择 ALL/Devel 下的 <code>gcc-core</code>，<code>gcc-g++</code> 和 <code>gettext</code> 的版本
<img src="/img/select_packages.png"
	
	
	
	loading="lazy"
	
		alt="select_packages.png"
	
	
></li>
</ol>
</li>
<li>
<p>假设你的 Cygwin 安装目录 (注意不是软件包下载目录) 为 <code>&lt;DIR&gt;</code> (默认应该是 <code>C:\cygwin</code>), 将目录 <code>&lt;DIR&gt;\bin</code> 目录添加到环境变量 <code>Path</code> 中 (如果 <code>Path</code> 中已经有 mingw 了, 请删除或者移到<code>&lt;DIR&gt;\bin</code>的下方), 并额外增加一条环境变量 <code>LANG</code>, 设置为 <code>zh_CN.UTF-8</code></p>
</li>
<li>
<p>将本仓库的 <code>prebuilt</code> 目录下的 <code>gcc-zh.mo</code> 放到 <code>&lt;DIR&gt;\usr\share\locale\zh_CN\LC_MESSAGES</code> 目录下, 并将其重命名为 <code>gcc.mo</code> (建议先将原来的gcc.mo备份)<br>
<img src="/img/change_gcc_mo.png"
	
	
	
	loading="lazy"
	
		alt="change_gcc_mo.png"
	
	
></p>
</li>
</ol>
<h3 id="macos">macOS</h3>
<p>暂未实现。欢迎贡献。</p>
<h2 id="如何修改贡献">如何修改/贡献</h2>
<p>前往<code>./src</code>目录，使用文本编辑器打开并编辑<code>zh-kawaii.po</code>。可以修改已有的内容，也可以根据原始简体中文本地化文件增加新内容。编辑完成后运行<code>make</code>指令合并文件，并将其编译成<code>mo</code>文件后拷贝到指定的地方。</p>
<h4 id="关于src目录下的文件">关于<code>src</code>目录下的文件</h4>
<ul>
<li><code>zh_CN.po</code>: GNU提供的原始简体中文版本地化文件。</li>
<li><code>zh_kawaii.po</code>: 本项目已修改的本地化内容。</li>
</ul>
<h4 id="如果您愿意参与贡献本项目">如果您愿意参与贡献本项目</h4>
<p>请在PR时将您修改完成的编译好的<code>mo</code>文件放在<code>../prebuilt</code>目录下，以更新预编译好的本地化二进制文件。</p>
<h2 id="star-history">Star History</h2>
<p><img src="https://api.star-history.com/svg?repos=Bill-Haku/kawaii-gcc&amp;type=Date"
	
	
	
	loading="lazy"
	
		alt="Star History Chart"
	
	
></p>
<h2 id="特别鸣谢">特别鸣谢</h2>
<p>本项目的灵感来自<a class="link" href="https://github.com/Mosklia/gcc-hentai"  target="_blank" rel="noopener"
    ><code>gcc-hentai</code></a>项目。为了将其推广到日语区，我创建了本仓库、制作了日语版并修改完善了使用说明的诸多细节，最后制作了完全日语的宣传视频发布在YouTube，不料却在Bilibili获得了关注。十分感谢原作者的分享和开源精神。</p>

</section>


    <footer class="article-footer">
    
    <section class="article-tags">
        
            <a href="/tags/%E7%BC%96%E7%A8%8B/">编程</a>
        
            <a href="/tags/c&#43;&#43;/">C&#43;&#43;</a>
        
            <a href="/tags/kawaii-gcc/">Kawaii-gcc</a>
        
            <a href="/tags/%E7%BC%96%E8%AF%91/">编译</a>
        
    </section>
<section class="article-lastmod">
        <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-clock" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <circle cx="12" cy="12" r="9" />
  <polyline points="12 7 12 12 15 15" />
</svg>



        <span>
            最后更新于 2024-01-07 14:00 CST
        </span>
    </section></footer>
<footer class="article-footer">
    
    <section class="article-copyright">
        <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-copyright" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <circle cx="12" cy="12" r="9" />
  <path d="M14.5 9a3.5 4 0 1 0 0 6" />
</svg>



        
		<span>版权声明：本文遵循&ensp;&ensp;<a href="https://creativecommons.org/licenses/by-nc-nd/4.0/deed.zh-hans" target="_blank" rel="noopener">CC BY-NC-ND 4.0 DEED (署名-非商业性使用-禁止演绎4.0国际)</a>&ensp;&ensp;版权协议。</span>
	</section>	
    
</footer>
<footer class="article-footer">
    
    <section class="article-copyright">
        <span>&ensp;&ensp;&ensp;&ensp;&ensp;转载说明：请附上本文链接及上述版权声明。</span>
	</section>	
    
</footer>


    
</article>

    

    

<aside class="related-content--wrapper">
    <h2 class="section-title">相关文章</h2>
    <div class="related-content">
        <div class="flex article-list--tile">
            
                
<article class="">
    <a href="/p/prog/cpp-boost-compile/">
        
        

        <div class="article-details">
            <h2 class="article-title">boost库编译</h2>
        </div>
    </a>
</article>

            
                
<article class="">
    <a href="/p/prog/cpp-qt5compile-msvc/">
        
        

        <div class="article-details">
            <h2 class="article-title">Qt5编译(MSVC)</h2>
        </div>
    </a>
</article>

            
                
<article class="">
    <a href="/p/prog/cpp-qt5compile-mingw-w64/">
        
        

        <div class="article-details">
            <h2 class="article-title">Qt5编译(MinGW-w64)</h2>
        </div>
    </a>
</article>

            
                
<article class="">
    <a href="/p/prog/cpp-qt6compile-msvc/">
        
        

        <div class="article-details">
            <h2 class="article-title">Qt6编译(MSVC)</h2>
        </div>
    </a>
</article>

            
                
<article class="">
    <a href="/p/prog/cpp-qt6compile-mingw-w64/">
        
        

        <div class="article-details">
            <h2 class="article-title">Qt6编译(MinGW-w64)</h2>
        </div>
    </a>
</article>

            
        </div>
    </div>
</aside>

     
    
        
    

    <footer class="site-footer">
    
	<section class="copyright">
	    技术交流： <a href="mailto:ypr@yprnet.com" target="_blank" rel="noopener">ypr@yprnet.com</a>、
		<a href="mailto:ypr@yuanpeirong.com" target="_blank" rel="noopener">ypr@yuanpeirong.com</a>
		<br />版权所有 © 2010-2025 <a title="访问天远网站" href="http://www.yprnet.com/" target="_blank" rel="noopener">YuanPeirong TianYuan</a> All Rights Reserved. Powered By <a title="访问天远网站" href="http://www.yprnet.com/" target="_blank" rel="noopener">天远</a>
    </section>
    <section class="powerby">
        Built with <a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a> <br />
        主题 <b><a href="https://github.com/CaiJimmy/hugo-theme-stack" target="_blank" rel="noopener" data-version="3.21.0">Stack</a></b> 由 <a href="https://jimmycai.com" target="_blank" rel="noopener">Jimmy</a> 设计 | <a href="http://www.yprnet.com/" target="_blank" rel="noopener">天远</a> 优化修改
    </section>
    <section class="powerby">
        <a target="_blank" href="https://beian.miit.gov.cn">浙ICP备15010776号-3</a>
    </section>
</footer>


    
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">

    
    <div class="pswp__bg"></div>

    
    <div class="pswp__scroll-wrap">

        
        <div class="pswp__container">
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
        </div>

        
        <div class="pswp__ui pswp__ui--hidden">

            <div class="pswp__top-bar">

                

                <div class="pswp__counter"></div>

                <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>

                <button class="pswp__button pswp__button--share" title="Share"></button>

                <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>

                <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>

                
                
                <div class="pswp__preloader">
                    <div class="pswp__preloader__icn">
                        <div class="pswp__preloader__cut">
                            <div class="pswp__preloader__donut"></div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                <div class="pswp__share-tooltip"></div>
            </div>

            <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
            </button>

            <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
            </button>

            <div class="pswp__caption">
                <div class="pswp__caption__center"></div>
            </div>

        </div>

    </div>

</div><script 
                src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.js"integrity="sha256-ePwmChbbvXbsO02lbM3HoHbSHTHFAeChekF1xKJdleo="crossorigin="anonymous"
                defer
                >
            </script><script 
                src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe-ui-default.min.js"integrity="sha256-UKkzOn/w1mBxRmLLGrSeyB4e1xbrp4xylgAWb3M42pU="crossorigin="anonymous"
                defer
                >
            </script><link 
                rel="stylesheet" 
                href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/default-skin/default-skin.min.css"crossorigin="anonymous"
            ><link 
                rel="stylesheet" 
                href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.css"crossorigin="anonymous"
            >

            </main>
        </div>
        <script 
                src="https://cdn.jsdelivr.net/npm/node-vibrant@3.1.6/dist/vibrant.min.js"integrity="sha256-awcR2jno4kI5X0zL8ex0vi2z&#43;KMkF24hUW8WePSA9HM="crossorigin="anonymous"
                
                >
            </script><script type="text/javascript" src="/ts/main.js" defer></script>
<script>
    (function () {
        const customFont = document.createElement('link');
        customFont.href = "https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap";

        customFont.type = "text/css";
        customFont.rel = "stylesheet";

        document.head.appendChild(customFont);
    }());
</script>

    </body>
</html>
